package com.threeti.jiayusms.domain.service.communicationlog;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.threeti.jiayusms.domain.model.legacy.CommunicationLog;
import com.threeti.jiayusms.infrastructure.communicationlog.CommunicationLogDao;

@Service
@Transactional
public class CommunicationLogUpdateServiceImpl implements
		CommunicationLogUpdateService {

	
	@Autowired
	private CommunicationLogDao dao;

	@Override
	public CommunicationLog storeCommunicationLog(CommunicationLog communicationLog) {
		return dao.store(communicationLog);
	}
	
	@Override
	public void removeCommunicationLogBy(Long logTemplateId) {
		dao.removeBy(logTemplateId);
	}
}
